package com.github.qingcheng.controller;

import com.github.qingcheng.pojo.Account;
import com.github.qingcheng.pojo.Result;
import com.github.qingcheng.service.LoginService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author GY
 * @version V1.0
 * @date 2025-01-21 11:35
 */
@Slf4j
@RestController
@RequiredArgsConstructor
public class LoginController {
    private final LoginService loginService;

    @PostMapping("/login")
    public Result login(Account account){
        log.info("LoginController-login-account:{}",account);
        //String token=loginService.login(account);
        return Result.success();
    }
}
